package com.gxa.controller.monitor;

import com.gxa.common.R;
import com.gxa.service.HomeMonitoringService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping("/homeMonitoring")
public class CriteriaQueryController {

    @Autowired
    HomeMonitoringService homeMonitoringService;


    @RequestMapping(value = "/findHomeMonitoringByConditions",method = RequestMethod.GET,produces = "application/json;charset=utf-8")
    @ResponseBody
    public R findHomeMonitoringByConditions(Integer currentPage, Integer pageSize, String name, String sex, String idNum ,String phoneNum, String source, String status,String normalOrAbnormal){

        return homeMonitoringService.findHomeMonitoringByConditions(currentPage,pageSize,name,sex,idNum,phoneNum,source,status,normalOrAbnormal);

    }
}
